export default request => ({
  GetShowComponentList: (queryParams, bodyParams) => request({
    url: `/onlcode/lowcode/showComponent/queryByPage?pageNo=${queryParams.pageNo}&pageSize=${queryParams.pageSize}`,
    method: 'post',
    data:bodyParams
  }),
  SaveDisplayElement: (data) => request({
    url: '/onlcode/lowcode/showComponent/saveOrUpdateShowComponent',
    method: 'post',
    data
  }),
  GetDisplayElementDetails: (params) => request({
    url: '/onlcode/lowcode/showComponent/getShowComponentById',
    method: 'get',
    params
  }),
  DeleteDisplayElement: (params) => request({
    url: '/onlcode/lowcode/showComponent/deleteShowComponent',
    method: 'get',
    params
  }),
  SAVE_SHOW_GENERATE_CODE:(params) =>
    request({
      url: `/onlcode/lowcode/showComponent/generateCode`,
      method: 'post',
      data: params
    }),
  GET_GENERATE_SHOW_PARAMS:(params) =>
    request({
      url: `/onlcode/lowcode/showComponent/getGenerateParam`,
      method: 'get',
      params
    })
})
